package Enclosure;

public class Entry implements IEntry {
    private int entryId;
    private int entryTypeId;
    private String entryType;
    private boolean isEntryOpen;

    public Entry(int entryId, int entryTypeId, String entryType, Boolean isEntryOpen) {
        this.entryId = entryId;
        this.entryTypeId = entryTypeId;
        this.entryType = entryType;
        this.isEntryOpen = isEntryOpen;
    }

    public int getEntryId() {
        return entryId;
    }

    public int getEntryTypeId() {
        return entryTypeId;
    }

    public String getEntryType() {
        return entryType;
    }

    public Boolean isEntryOpen() {
        return isEntryOpen;
    }

    public void openEntry() {
        isEntryOpen = true;
    }

    public void closeEntry() {
        isEntryOpen = false;
    }
}
